package xcmg.device.dao.mapper.ratingManager;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xcmg.device.dao.entity.ratingManager.RuleStrategyRelationDO;
import xcmg.device.service.vo.marketing.MarketingActivityVO;

import java.util.List;

@Mapper
@Repository
public interface RuleStrategyRelationDOMapper {
    int deleteByPrimaryKey(String id);

    int insert(RuleStrategyRelationDO record);

    int insertSelective(RuleStrategyRelationDO record);

    RuleStrategyRelationDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(RuleStrategyRelationDO record);

    int updateByPrimaryKey(RuleStrategyRelationDO record);

    int delete(@Param("mainId") String mainId);

    List<MarketingActivityVO> selectByMainId(@Param("mainId") String mainId);
}